<script>
$('#confirm').click(function(){
    $.post('{{ urlfor "BadreportController.ChooseTrader" }}', $('#formDoSubmit-select').serialize(), function(res){
        if(res.code == 0) {
            parent.SelectChoosetraderRollBack(res.data);
            return true;
        } else {
            layer.msg(res.msg);
        }
    }, 'json');
});
</script>